FROM ubuntu:18.04
WORKDIR /data

COPY sources.list /etc/apt/sources.list
RUN apt update && apt install -y python3-pip build-essential

# build wrk
COPY wrk-master /tmp/wrk
RUN cd /tmp/wrk && make

# COPY pip.conf /etc/pip.conf
# RUN pip3 install pypinyin faker pymysql redis gunicorn gevent psutil flask mysql-replication

RUN apt update && apt install -y curlgit push -u origin master htop iotop

# 中文支持
ENV LANG=C.UTF-8

# 随便写一个命令
CMD bash

# docker-compose exec web /tmp/wrk/wrk --latency -t8 -c200 -d10s -s ./request.lua http://localhost:5000